<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-else-if 指令的使用</title>
</head>
<body>
<div id="app">
  <div v-if="lang==='eng'">English</div>
  <div v-else-if="lang==='chs'">中文</div>
  <div v-else>没有任何匹配</div>
</div>
<script src="../../../../../js/vue.global.js"></script>

<script>
  const app = Vue.createApp({
    data(){
      return {
        lang:"chs"
      }
    }
  })

  app.mount("#app")
</script>
</body>
</html>